<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=cn-gb">
		<link href="css/style.css" rel="stylesheet" type="text/css">
		<title>修改用户</title>
		<script type="text/javascript">
			function userAction() {
				var d = document.forms[0];
				d.action = "update";
				d.submit();
			}
		</script>

	</head>

	<body>
		<center>
			<h2>
				修改用户
			</h2>
		</center>
		<%
		String username = request.getParameter("userName");
		String password = request.getParameter("password");
		%>

		<form method="post">
			<table align="center">
				<tr>
					<td>
						用户名：
					</td>
					<td>
						<input readonly type="text" name="user.name" value="<%=username%>" />
					</td>
				</tr>
				<tr>
					<td>
						密&nbsp;&nbsp;码：
					</td>
					<td>
						<input type="text" name="user.password" value="<%=password%>" />
					</td>
				</tr>
				<tr align="center">
					<td colspan="2">
						<!-- input type="image"
							src="${pageContext.request.contextPath}/images/tj.gif"
							onclick="userAction()" /> -->
						<input type="button" value="保存" name="Save" onclick="userAction();" />
						<input type="button" value="返回" name="Back" onclick="history.go(-1);" />
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>